Integrand size = 32, antiderivative size = 443 \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {d^2 \left (b-\left (c+a d^2\right ) x\right )}{\left (b^2 d^2-\left (c+a d^2\right )^2\right ) \sqrt {1-d^2 x^2}}+\frac {c \left (2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2\right ) \text {arctanh}\left (\frac {2 c+\left (b-\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {2} \sqrt {2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2} \sqrt {1-d^2 x^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2} \left (b^2 d^2-\left (c+a d^2\right )^2\right )}-\frac {c \left (2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2\right ) \text {arctanh}\left (\frac {2 c+\left (b+\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {2} \sqrt {2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2} \sqrt {1-d^2 x^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2} \left (b^2 d^2-\left (c+a d^2\right )^2\right )} \]
[Out]
Time = 0.91 (sec) , antiderivative size = 443, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {913, 990, 1048, 739, 212} \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {c \left (-b d^2 \left (\sqrt {b^2-4 a c}+b\right )+2 a c d^2+2 c^2\right ) \text {arctanh}\left (\frac {d^2 x \left (b-\sqrt {b^2-4 a c}\right )+2 c}{\sqrt {2} \sqrt {1-d^2 x^2} \sqrt {-b d^2 \left (b-\sqrt {b^2-4 a c}\right )+2 a c d^2+2 c^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {-b d^2 \left (b-\sqrt {b^2-4 a c}\right )+2 a c d^2+2 c^2} \left (b^2 d^2-\left (a d^2+c\right )^2\right )}-\frac {c \left (-b d^2 \left (b-\sqrt {b^2-4 a c}\right )+2 a c d^2+2 c^2\right ) \text {arctanh}\left (\frac {d^2 x \left (\sqrt {b^2-4 a c}+b\right )+2 c}{\sqrt {2} \sqrt {1-d^2 x^2} \sqrt {-b d^2 \left (\sqrt {b^2-4 a c}+b\right )+2 a c d^2+2 c^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {-b d^2 \left (\sqrt {b^2-4 a c}+b\right )+2 a c d^2+2 c^2} \left (b^2 d^2-\left (a d^2+c\right )^2\right )}+\frac {d^2 \left (b-x \left (a d^2+c\right )\right )}{\sqrt {1-d^2 x^2} \left (b^2 d^2-\left (a d^2+c\right )^2\right )} \]
[In]
[Out]
Rule 212
Rule 739
Rule 913
Rule 990
Rule 1048
Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{\left (a+b x+c x^2\right ) \left (1-d^2 x^2\right )^{3/2}} \, dx \\ & = \frac {d^2 \left (b-\left (c+a d^2\right ) x\right )}{\left (b^2 d^2-\left (c+a d^2\right )^2\right ) \sqrt {1-d^2 x^2}}-\frac {\int \frac {2 d^2 \left (c^2-b^2 d^2+a c d^2\right )-2 b c d^4 x}{\left (a+b x+c x^2\right ) \sqrt {1-d^2 x^2}} \, dx}{2 d^2 \left (b^2 d^2-\left (c+a d^2\right )^2\right )} \\ & = \frac {d^2 \left (b-\left (c+a d^2\right ) x\right )}{\left (b^2 d^2-\left (c+a d^2\right )^2\right ) \sqrt {1-d^2 x^2}}+\frac {\left (c \left (2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2\right )\right ) \int \frac {1}{\left (b+\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {1-d^2 x^2}} \, dx}{\sqrt {b^2-4 a c} \left (b^2 d^2-\left (c+a d^2\right )^2\right )}-\frac {\left (c \left (2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2\right )\right ) \int \frac {1}{\left (b-\sqrt {b^2-4 a c}+2 c x\right ) \sqrt {1-d^2 x^2}} \, dx}{\sqrt {b^2-4 a c} \left (b^2 d^2-\left (c+a d^2\right )^2\right )} \\ & = \frac {d^2 \left (b-\left (c+a d^2\right ) x\right )}{\left (b^2 d^2-\left (c+a d^2\right )^2\right ) \sqrt {1-d^2 x^2}}-\frac {\left (c \left (2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2\right )\right ) \text {Subst}\left (\int \frac {1}{4 c^2-\left (b+\sqrt {b^2-4 a c}\right )^2 d^2-x^2} \, dx,x,\frac {2 c+\left (b+\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {1-d^2 x^2}}\right )}{\sqrt {b^2-4 a c} \left (b^2 d^2-\left (c+a d^2\right )^2\right )}+\frac {\left (c \left (2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2\right )\right ) \text {Subst}\left (\int \frac {1}{4 c^2-\left (b-\sqrt {b^2-4 a c}\right )^2 d^2-x^2} \, dx,x,\frac {2 c+\left (b-\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {1-d^2 x^2}}\right )}{\sqrt {b^2-4 a c} \left (b^2 d^2-\left (c+a d^2\right )^2\right )} \\ & = \frac {d^2 \left (b-\left (c+a d^2\right ) x\right )}{\left (b^2 d^2-\left (c+a d^2\right )^2\right ) \sqrt {1-d^2 x^2}}+\frac {c \left (2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2\right ) \tanh ^{-1}\left (\frac {2 c+\left (b-\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {2} \sqrt {2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2} \sqrt {1-d^2 x^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2} \left (b^2 d^2-\left (c+a d^2\right )^2\right )}-\frac {c \left (2 c^2+2 a c d^2-b \left (b-\sqrt {b^2-4 a c}\right ) d^2\right ) \tanh ^{-1}\left (\frac {2 c+\left (b+\sqrt {b^2-4 a c}\right ) d^2 x}{\sqrt {2} \sqrt {2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2} \sqrt {1-d^2 x^2}}\right )}{\sqrt {2} \sqrt {b^2-4 a c} \sqrt {2 c^2+2 a c d^2-b \left (b+\sqrt {b^2-4 a c}\right ) d^2} \left (b^2 d^2-\left (c+a d^2\right )^2\right )} \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
Time = 0.56 (sec) , antiderivative size = 456, normalized size of antiderivative = 1.03 \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\frac {d^2 \left (b-\left (c+a d^2\right ) x\right ) \sqrt {1-d^2 x^2}+\left (1-d^2 x^2\right ) \text {RootSum}\left [a d^4-2 b d^2 \text {$\#$1}+4 c \text {$\#$1}^2+2 a d^2 \text {$\#$1}^2-2 b \text {$\#$1}^3+a \text {$\#$1}^4\&,\frac {-c^2 d^2 \log (x)+b^2 d^4 \log (x)-a c d^4 \log (x)+c^2 d^2 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right )-b^2 d^4 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right )+a c d^4 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right )-2 b c d^2 \log (x) \text {$\#$1}+2 b c d^2 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right ) \text {$\#$1}-c^2 \log (x) \text {$\#$1}^2+b^2 d^2 \log (x) \text {$\#$1}^2-a c d^2 \log (x) \text {$\#$1}^2+c^2 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right ) \text {$\#$1}^2-b^2 d^2 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right ) \text {$\#$1}^2+a c d^2 \log \left (-1+\sqrt {1-d^2 x^2}-x \text {$\#$1}\right ) \text {$\#$1}^2}{-b d^2+4 c \text {$\#$1}+2 a d^2 \text {$\#$1}-3 b \text {$\#$1}^2+2 a \text {$\#$1}^3}\&\right ]}{(c+d (-b+a d)) (c+d (b+a d)) (-1+d x) (1+d x)} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.61 (sec) , antiderivative size = 11142, normalized size of antiderivative = 25.15
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 21628 vs. \(2 (404) = 808\).
Time = 6.57 (sec) , antiderivative size = 21628, normalized size of antiderivative = 48.82 \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\int \frac {1}{\left (- d x + 1\right )^{\frac {3}{2}} \left (d x + 1\right )^{\frac {3}{2}} \left (a + b x + c x^{2}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\int { \frac {1}{{\left (c x^{2} + b x + a\right )} {\left (d x + 1\right )}^{\frac {3}{2}} {\left (-d x + 1\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(1-d x)^{3/2} (1+d x)^{3/2} \left (a+b x+c x^2\right )} \, dx=\int \frac {1}{{\left (1-d\,x\right )}^{3/2}\,{\left (d\,x+1\right )}^{3/2}\,\left (c\,x^2+b\,x+a\right )} \,d x \]
[In]
[Out]